package cn.itsource.org.service;

import cn.itsource.basic.page.PageList;
import cn.itsource.basic.page.Pageable;
import cn.itsource.org.domain.Department;

import java.util.List;
import java.util.Map;

public interface IDepartmentService {

    List<Department> findAll();

    Department findOne(Long id);

    void saveOrUpdate(Department department);

    void delete(Long id);

    PageList<Department> pageQuery(Pageable pageable);

    void bachDelete(Map<String,String> map);

    List<Department> tree();
}
